#ifndef DOWNLOAD_H_
#define DOWNLOAD_H_

#include "console.h"

const int REV = 1;


class Download {
public:
	Download();
	~Download();
	
	bool Update();
	
	int DownloadFileToMem(const char *url, u8 **inbuffer, u32 *size);
	int DownloadFileToPath(const char *orig_url, const char *dest);
	
	char *GetIP();

private:
	size_t ExtractDomain(const char *url);
	
	char *path;
	char IP[40];
	Console *console;

};


#endif /*DOWNLOAD_H_*/